home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / g_doom / deep870s.zip / SCRIPTS.ACS < prev    next >
Text File  |  1996-01-19  |  6KB  |  156 lines

  1. //////////////////////////////////////////////////////////////////////
  2. //   Sample Script File for SCRIPTS.WAD
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #include "common.acs" //This line must be in the beginning of every script
  6.  
  7. //----------------------------------------------------------------------
  8. //   script 1  These are comment lines
  9. //----------------------------------------------------------------------
  10.  
  11. script 1 (void)    //This line tells the script number and says there are no
  12.                    //variables. Use "(void)" as a default in making scripts.
  13.  
  14. {   // This character opens the scripts for commands.
  15.         
  16.     Floor_raisebyvalue(const:3, 15, 32);     //This is the meat of the
  17.     Ceiling_RaiseByValue(const:8, 100, 120); //script. This is where all
  18.     ACS_execute(const:3, 1, 0, 0, 0);        //your commands and specials go.
  19.     
  20. }   //This character closes the script for commands.
  21.  
  22. //----------------------------------------------------------------------
  23. //  script 2
  24. //----------------------------------------------------------------------
  25.  
  26. script 2 (void)
  27. {                                            //Here is the correct format 
  28.     delay(const:20);                         //of a script.  
  29.  
  30.     Pillar_Open(const:1, 15, 112, 112);      //
  31.     tagwait(const:1);                        //Always end a command
  32.     delay(const:37);                         //with a semi-colon
  33.                                              //
  34.     Pillar_Open(const:2, 10, 96, 96);        //
  35. }                                            
  36.  
  37. //----------------------------------------------------------------------
  38. //  script 3
  39. //----------------------------------------------------------------------
  40.  
  41. script 3 (void)
  42. {   
  43.    {    
  44.       setlinetexture(1, side_front, texture_middle, "spawn09");
  45.       setlinetexture(2, side_front, texture_middle, "spawn09");
  46.       setlinetexture(3, side_front, texture_middle, "spawn09");
  47.       delay(const:2);
  48.  
  49.       setlinetexture(1, side_front, texture_middle, "spawn10");
  50.       setlinetexture(2, side_front, texture_middle, "spawn10");
  51.       setlinetexture(3, side_front, texture_middle, "spawn10");
  52.       delay(const:2);     
  53.  
  54.       thing_projectilegravity(1, T_FIREBALL1, random(96, 160), random(90, 120), 0);
  55.       thing_projectilegravity(2, T_FIREBALL1, random(160, 224), random(90, 120), 0);
  56.       thing_projectilegravity(3, T_FIREBALL1, 224, random(90, 120), 0);
  57.       thing_projectilegravity(3, T_FIREBALL1, random(0, 32), random(90, 120), 0);
  58.       thingsound(1, "FireDemonAttack", 127);
  59.       delay(const:2);
  60.  
  61.       setlinetexture(1, side_front, texture_middle, "spawn09");
  62.       setlinetexture(2, side_front, texture_middle, "spawn09");
  63.       setlinetexture(3, side_front, texture_middle, "spawn09");
  64.       delay(const:2);
  65.  
  66.       setlinetexture(1, side_front, texture_middle, "spawn08");
  67.       setlinetexture(2, side_front, texture_middle, "spawn08");
  68.       setlinetexture(3, side_front, texture_middle, "spawn08");
  69.   }
  70.   restart;    //This line restarts the script at the beginning.
  71. }
  72.  
  73. //----------------------------------------------------------------------
  74. //  script 4
  75. //----------------------------------------------------------------------
  76.  
  77. Script 4 (void)        
  78. {        
  79.     delay(const:20);
  80.     Radius_Quake(const:7, 170, 0, 3, 4);    
  81.     delay(const:75);
  82.  
  83.     Ceiling_RaiseByValue(const:4, 15, 112);
  84.     delay(const:20);
  85.  
  86.     Ceiling_RaiseByValue(const:5, 15, 128);
  87.     delay(const:50);
  88.  
  89.     Floor_LowerToLowest(const:6, 20);
  90.     delay(const:120);
  91.  
  92.     Floor_RaiseByValue(const:6, 20, 128);
  93.     delay(const:175);
  94.  
  95.     Ceiling_LowerByValue(const:4, 15, 112);
  96.     Ceiling_LowerByValue(const:5, 15, 128);
  97. }
  98.  
  99. //----------------------------------------------------------------------
  100. //  script 5
  101. //----------------------------------------------------------------------
  102.  
  103. script 5 (void)
  104. {
  105.     delay(const:20);
  106.     Radius_Quake(const:7, 40, 0, 3, 5);
  107.     Floor_RaiseToHighest(const:10, 200);
  108.     delay(const:30);
  109.  
  110.     Thing_SpawnNoFog(const:7, T_BISHOP, 64);
  111. }
  112.  
  113. //----------------------------------------------------------------------
  114. //  script 6
  115. //----------------------------------------------------------------------
  116.  
  117. script 6 (void)
  118. {
  119.     Floor_LowerByValue(const:7, 8, 48);
  120.     Ceiling_RaiseByValue(const:9, 25, 128);
  121. }
  122.  
  123. //----------------------------------------------------------------------
  124. //  script 7
  125. //----------------------------------------------------------------------
  126.  
  127. script 7 (void)
  128. {
  129.     Floor_RaiseByValue(const:7, 8, 48);
  130.     Thing_Spawn(const:6, T_ITEMHEALTHPOTION, 0);
  131. }
  132.  
  133. //----------------------------------------------------------------------
  134. //  script 8
  135. //----------------------------------------------------------------------
  136.  
  137. Script 8 (void)
  138. {
  139.     Polyobj_RotateRight(const:1, 4, 64);
  140. }
  141.  
  142. //----------------------------------------------------------------------
  143. //  script 200
  144. //----------------------------------------------------------------------
  145.  
  146. script 200 OPEN    //This runs the script right as the game starts.
  147. {
  148.      if(gametype() == GAME_NET_DEATHMATCH)     // This line tells the script to
  149.      {                                         // run only if the game is 
  150.         Floor_RaiseByValue(const:7, 8, 48);    // deathmatch.
  151.         Thing_Spawn(const:6, T_ITEMHEALTHPOTION, 0);
  152.      }
  153. }
  154.  
  155. //////////////////// end of ACS script ////////////////////////////////////
  156.